package com.book.dacnhantam;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.book.dacnhantam.data.Chapter;
import java.util.List;

class ChapterAdapter extends ArrayAdapter<Chapter>
{
  LayoutInflater inflater;
  private final List<Chapter> mChapters;
  private final Context mContext;

  public ChapterAdapter(Context paramContext, List<Chapter> paramList)
  {
    super(paramContext, 2130903044, paramList);
    this.mContext = paramContext;
    this.mChapters = paramList;
    this.inflater = ((LayoutInflater)this.mContext.getSystemService("layout_inflater"));
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    View localView;
    TextView localTextView1;
    TextView localTextView2;
    Chapter localChapter;
    if (paramView == null)
    {
      localView = this.inflater.inflate(2130903044, null);
      localTextView1 = (TextView)localView.findViewById(2131230732);
      localTextView2 = (TextView)localView.findViewById(2131230733);
      localChapter = (Chapter)this.mChapters.get(paramInt);
      if (!localChapter.isChapter())
        break label92;
      localTextView1.setText(localChapter.getChapterTextNumber());
      localTextView2.setText(localChapter.getTitle());
    }
    while (true)
    {
      return localView;
      localView = paramView;
      break;
      label92: localTextView1.setText(localChapter.getTitle());
      localTextView2.setText("");
    }
  }
}

/* Location:           C:\Users\chutieucodon\Desktop\dec\com.book.dacnhantam-36fb9c182ef79376b618c867d3d1c347\classes_dex2jar.jar
 * Qualified Name:     com.book.dacnhantam.ChapterAdapter
 * JD-Core Version:    0.6.0
 */